package com.jumi.microservice.enumerate;

import com.jumi.microservice.common.base.dto.AbstractEnum;

/**
 * @author by mazhao
 * @Date 2020/7/21 9:13
 */
public enum SourceEnum implements AbstractEnum<Byte> {
    //订单来源，1 淘宝， 2 京东， 3 拼多多
    TAOBAO(1, "淘宝"),
    JD(2, "京东"),
    PDD(3,"拼多多");

    private Byte code;

    private String message;

    SourceEnum(Integer code, String message) {
        this.code = code.byteValue();
        this.message = message;
    }

    @Override
    public Byte getCode() {
        return code;
    }

    public void setCode(Byte code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
